<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'updateHTML.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="js/jquery-1.7.1.js"></script>
	<link rel="stylesheet" href="./kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="./kindeditor/plugins/code/prettify.css" />
	<script charset="utf-8" src="./kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="./kindeditor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="./kindeditor/plugins/code/prettify.js"></script>
	
	<script type="text/javascript">
		<!--
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="staticHTML.content"]', {
				cssPath : 'kindeditor/plugins/code/prettify.css',
				uploadJson : 'kindeditor/jsp/upload_json.jsp',
				fileManagerJson : 'kindeditor/jsp/file_manager_json.jsp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						document.forms['staticHTMLForm'].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						document.forms['staticHTMLForm'].submit();
					});
				}
			});
			prettyPrint();
		});

		//-->
	</script>

  </head>
  
  <body>
  <form action="updateHTML.action" method="post" name="staticHTMLForm">
   <textarea id="staticHTML" name="staticHTML.content" style="width:960px;height:500px;visibility:hidden;">${staticHTML.content }</textarea>
   <p align="right" style="padding-right: 100px;"><input type="submit" value="更新" style="height: 30px;	width: 150px;	color:#73938E;	padding-left:5px;	font-weight:bold;">(提交快捷键: Ctrl + Enter)</p>
   </form>
  </body>
</html>
